/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.tendon.convert.json.listeners;

import com.tencent.tendon.convert.json.*;

/**
 *
 * @author nbzhang
 */
public final class JsonByteListener extends JsonAbstractListener<Byte> {

    private static final JsonByteListener instance = new JsonByteListener();

    private JsonByteListener() {
    }

    public static JsonByteListener getInstance() {
        return instance;
    }

    @Override
    public void convertTo(final JsonWriter out, final Byte value) {
        convertByteTo(out, value);
    }

    @Override
    public final Byte convertFrom(final JsonReader in) {
        return convertByteFrom(in);
    }

    @Override
    public Class<Byte> getType() {
        return Byte.class;
    }
}
